package main
import "fmt"

func main() {
	var n =100
	var num int
	var count int
	var i=true
	for i{
		fmt.Println("前面")
		fmt.Scanf("%d",&num)
		fmt.Println("后面")
		switch {
		case num==n:
			fmt.Println("答对了,程序退出")
			count+=1
			i=!true
		case num<n:
			fmt.Println("小了")
			//fmt.Scanf("%d",&num)
			count+=1
			case num>n:
			fmt.Println("大了")
			//	fmt.Scanf("%d",&num)
			count+=1
			}
	}
	fmt.Println(count)	
}